<?php

use yii\db\Migration;
use yii\db\Schema;

class m170104_060251_alert_room_area extends Migration
{
    public function up()
    {

         $this->alterColumn('{{room}}', 'area', Schema::TYPE_STRING. "(16) NULL COMMENT '客房面积' ");
         $this->alterColumn('{{room}}', 'balcony_area', Schema::TYPE_STRING. "(16) NULL COMMENT '阳台面积' ");
    }

    public function down()
    {
        echo "m170104_060251_alert_room_area cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
